it is easy to send messages through cmd prompt to other systems here is the answer

first we have to set our systems messenger ACTIVE for that follow these steps
1. goto RUN
2. type services.msc
3. scrolldown and give RIGHT click on MESSENGER
4. select PROPERTIES
5. then for enabling it go to STARTUP TYPE and select AUTOMATIC
6. then OK

and this should be performed on both sides (SENDER & RECIEVER)

after that if u want to send message then do the following steps

1. goto cmd prompt

2. type syntax as follows

net send ipaddress of reciever "message to be send"

ex: net send 172.16.6.99 "hello"



msg "JOHN STATION" /SERVER:OTHERCOMPUTERNAME Hello buddy.

msg SCL1114PC077 hello william
msg SCL1114PC093 hello william

10.242.196.116

# this works
msg * /SERVER:10.242.196.116 hello william

Might display a little flash, but no temp files required. Should work all the way back to somewhere in the (IIRC) IE5 era.

mshta javascript:alert("Message\n\nMultiple\nLines\ntoo!");close();
Don't forget to escape your parentheses if you're using if:

if 1 == 1 (
mshta javascript:alert^("1 is equal to 1, amazing."^);close^(^);
)
http://stackoverflow.com/questions/774175/show-a-popup-message-box-from-a-windows-batch-file
http://stackoverflow.com/questions/21165565/windows-cmd-exe-command-to-display-a-messagebox-with-timeout